package com.javalab._6feature._1enum;

public class Test {
    public static void main(String[] args) {
        String add_string = "+";

        Operator add = Operator.ADD;
        System.out.println(add.getValue());

        OperatorV2 add2 = OperatorV2.ADD;
        System.out.println(add2.getName());

        OperatorV2 addV2 = OperatorV2.parse("+");
        System.out.println(addV2.getName());
    }
}
